package com.aidong.carnival.entity;

import com.aidong.carnival.controllers.concerns.View.Base;
import com.aidong.util.QiniuUtil;
import com.fasterxml.jackson.annotation.JsonView;

public class VotedTalent {
	@JsonView(Base.class)
	private int idongId;
	@JsonView(Base.class)
	private String name;
	@JsonView(Base.class)
	private int vote;
	private String defaultPhoto;

	@JsonView(Base.class)
	public String photo() {
		return QiniuUtil.QINIU_URL + defaultPhoto;
	}

	public int getIdongId() {
		return idongId;
	}

	public void setIdongId(int idongId) {
		this.idongId = idongId;
	}

	public String getName() {
		if(name==null){
			name = "";
		}
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getVote() {
		return vote;
	}

	public void setVote(int vote) {
		this.vote = vote;
	}

	public String getDefaultPhoto() {
		return defaultPhoto;
	}

	public void setDefaultPhoto(String defaultPhoto) {
		this.defaultPhoto = defaultPhoto;
	}

}
